package driver;

/**
 * Regression Runner
 * @author tigerzhong
 *
 */
public abstract class RegressionRunner {
    /**
     * Controller
     * @param runner
     * @param confPath
     * @param type
     * @throws Exception
     */
    public static void run(RegressionRunner runner, String confPath, String type) throws Exception{
	if("Train".equalsIgnoreCase(type)) runner.performFitting(confPath);
	if("Test".equalsIgnoreCase(type)) runner.performPrediction(confPath);
    }
    public abstract void performFitting(String confPath) throws Exception;
    public abstract void performPrediction(String confPath) throws Exception;

}
